package com.pine.common.util.async;

import java.util.concurrent.Executor;

/**
 * 异步工具类
 *
 * @author pine manage
 * @since 2024-08-09
 */
public class AsyncUtil {

    /**
     * 获取异步组件
     *
     * @param executor 线程池
     * @return 异步组件
     */
    public static AsyncComponent getAsyncComponent(Executor executor) {
        return new AsyncComponent(executor);
    }
}
